<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2019/1/30
 * Time: 6:33 PM
 */
namespace App\Controllers;
use Swoft\Bean\Annotation\Inject;
use Swoft\Db\Db;
use Swoft\Http\Server\Bean\Annotation\Controller;
use Swoft\Http\Server\Bean\Annotation\RequestMapping;
/**
 * @Controller(prefix="/tp")
 */
class AdController{
    /**
     * @RequestMapping()
     */
    function tt(){
        $result = Db::query('select * from user where id=1')->getResult();
        return $result;
    }
}
